import { observer } from "mobx-react";
import { Spin } from 'antd';
import FormView from "../../../designer/form/view/FormView";
@observer
export default class TaskViewForm extends React.Component {
    render() {
        const { store } = this.props;
        return (
            <div className="edc-task-view-form">
                <Spin ecId={`${this && this.props && this.props.ecId || ''}_Spin@s6qs5i`} spinning={!store.isInit} size="large" wrapperClassName="wea-edc-excel-spin">
                {store.isInit &&<FormView ecId={`${this && this.props && this.props.ecId || ''}_FormView@ux258r`} store={store} />}
                </Spin>
            </div>
        )
    }
}